import { getToken, setToken } from '@/utils/index.js'

const state = {
	token: getToken() || ''
}

const mutations = {
	setToken(state, Token){
		state.token = Token
		setToken(Token)
	}
}

const actions = {}

const getters = {}

export default {
	namespaced: true,
	state,
	mutations,
	actions,
	getters
}
